package com.je180503.service.impl;

import com.je180503.dao.NewsTypeMapper;
import com.je180503.dao.impl.NewsTypeMapperImpl;
import com.je180503.dao.util.MyBatisUtil;
import com.je180503.pojo.NewsType;
import com.je180503.service.NewsTypeService;

import java.util.List;

public class NewsTypeServiceImpl implements NewsTypeService{

    NewsTypeMapper newsTypeMapper=new NewsTypeMapperImpl();
    @Override
    public int save(NewsType newType) {
        return newsTypeMapper.save(newType);
    }

    @Override
    public List<NewsType> getTopNewsTypeList() {
        return newsTypeMapper.getTopNewsTypeList();
    }
}
